<div class="host" id="host">
    <div class="col-sm-12">
        设备配置 -&gt;过滤规则控制策略管理
    </div>
    <div class="col-sm-12 host pdt15">
        <ul class="nav nav-tabs" id="myTab">
            <li class="active"><a href="#region" class="active" data-menu="host_accessStatic">静态策略管理</a></li>
            <li><a href="#packing" data-menu="host_accessDynamic">动态策略管理</a></li>
        </ul>
        <div class="tab-content">
            <div class="panel access-panel">
                <div class="row">
                    <div class="col-sm-4">
                        <script type="template/html" id="accessStatic-addInfo" data-method="get">
                            <div class="col-sm-10">
                                <div class="input-group pd15">
                                    <a class="input-group-addon">缓存规则正则表达式</a>
                                    <input type="text" class="form-control" name="Regexp" placeholder="" value="{{name}}">
                                </div>
                            </div>
                        </script>
                        <script type="template/html" id="accessStatic-Issued" data-method="get">
                            <form id="accessStatic-Issued-form" class="row">
                                <div class="form-group clearfix ">
                                    <label for="" class="col-sm-4 control-label">下发类型</label>
                                    <div class="col-sm-8" style="text-align: left">
										<span class="new-radio">
									    	<input type="radio" class="ZUI-radio" name="Type" value="1" id="global_show_1">
									    	<label for="global_show_1">
                                                <span class="ZUI-radio-btn"></span>
                                                <span class="ZUI-radio-txt">url重定向</span>
                                            </label>
								    		<input type="radio" class="ZUI-radio" name="Type" value="2" id="global_show_3">
									    	<label for="global_show_3">
                                                <span class="ZUI-radio-btn"></span>
                                                <span class="ZUI-radio-txt">url阻断</span>
                                            </label>
								    		<input type="radio" class="ZUI-radio" name="Type" value="3" id="global_show_4">
									    	<label for="global_show_4">
                                                <span class="ZUI-radio-btn"></span>
                                                <span class="ZUI-radio-txt">ip/host阻断</span>
                                            </label>
										</span>
                                    </div>
                                </div>
                                <div class="form-group clearfix ">
                                    <label for="" class="col-sm-4 control-label">下发设备(PPC)</label>
                                    <div class="col-sm-8" style="text-align: left">
                                        <input type="checkbox" class="ZUI-checkbox" id="host-Issued-check-all">
                                        <label for="host-Issued-check-all">
                                            <span class="ZUI-checkbox-btn"></span>
                                            <span class="ZUI-checkbox-txt">全选</span>
                                        </label>
										<span class="new-checks">
									    	{{{global_show_checkbox "" "/ApiCommon/getHostByType?type=2" "HostName" "Id" "" "info"}}}
										</span>
                                    </div>
                                </div>
                            </form>
                        </script>
                        <a href="#" data-menu="host/access/host_accessStatic-add" class="btn btn-primary host-accessStatic-add">+ 添加</a>
                        <a href="#" class="btn btn-primary host-accessStatic-delM">- 删除</a>
                        <a href="#" class="btn btn-primary host-accessStatic-Issued">- 下发</a>
                    </div>
                    <div class="col-sm-8 text-right">
                        <form id="search-bar" class="row">
                            <input type="hidden" name="Pagesize" value="15">
                            <div class="col-sm-6">
                                <input type="text" name="UrlIP" class="form-control" placeholder="url或ip">
                            </div>
                            <div class="col-sm-5">
                                <div class="btn-submit btn btn-default">搜索</div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="table-holder" data-list data-url="/ApiAccessControl/listAccessControl" data-pager="#pager-bar" data-method="post" data-form="#search-bar" data-totalshow="#total-bar"></div>
                <script type="template">
                    <table class="table table-hover" style="table-layout:fixed;">
                        <tr>
                            <th>
                                <input type="checkbox" class="ZUI-checkbox" id="host-accessStatic-check-all" data-check-all=".host-accessStatic">
                                <label for="host-accessStatic-check-all">
                                    <span class="ZUI-checkbox-btn"></span>
                                    <span class="ZUI-checkbox-txt"></span>
                                </label>
                            </th>
                            <th width="350px" style="word-wrap:break-word;">url或ip</th>
                            <th>重定向/阻断</th>
                            <th width="350px" style="word-wrap:break-word;">重定向url</th>
                            <th>动态/静态</th>
                            <th>操作</th>
                        </tr>
                        {{#each rows}}
                        <tr data-id="{{Id}}">
                            <td>
                                <input type="checkbox" class="ZUI-checkbox host-accessStatic" value="{{Id}}" id="host-accessStatic-check{{Id}}" data-id="{{Id}}">
                                <label for="host-accessStatic-check{{Id}}">
                                    <span class="ZUI-checkbox-btn"></span>
                                    <span class="ZUI-checkbox-txt"></span>
                                </label>
                            </td>
                            <td width="350px" style="word-wrap:break-word;"><span class="ZUI-url" title="{{UrlIp}}">{{UrlIp}}</span></td>
                            <td>{{RedirStop RedirStop}}</td>
                            <td width="350px" style="word-wrap:break-word;"><span class="ZUI-url" title="{{RedirUrl}}">{{RedirUrl}}</span></td>
                            <td  data-value="{{Status}}">{{host_user_status Status}}</td>
                            <td>
                                <a href="#" class="ZUI-operate region-del accessStatic-delete" data-id="{{Id}}"><span class="iconfont">&#xe603;</span>删除</a>
                                <a href="#" data-menu="host/access/host_accessStatic-edit:Id={{Id}}" class="ZUI-operate region-edit accessStatic-edit"><span class="iconfont">&#xe602;</span>修改</a>
                            </td>
                        </tr>
                        {{/each}}
                    </table>
                </script>
                <div class="pager row">
                    <div class="col-sm-4">共<span id="total-bar">0</span>条记录</div>
                    <div id="pager-bar" class="col-sm-8"></div>
                </div>
            </div>
        </div>
    </div>
</div>